package me.zingon.wxbus.controller;

import me.zingon.wxbus.service.LineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/line")
public class LineController {

    @Autowired
    LineService lineService;

    @RequestMapping("/load")
    public Object loadLine(String json,String rtSign){
        lineService.loadLine(json,rtSign);
        return "";
    }

    @GetMapping("/station")
    public Object loadStation(){
        lineService.loadStaion();
        return "";
    }

}
